package com.rich.group.service;

import com.rich.common.result.CommonResponse;
import com.rich.group.pojo.GroupJoin;

/**
 * @author minicoco
 * @version 1.0
 * @date 2021/8/16 11:52
 */
public interface GroupJoinService {

    /**
     * 我要报名
     * @param uid
     * @param groupId
     * @return
     */
    CommonResponse signup(Long uid, Long groupId);

    /**
     * 删除参团用户
     * @param id
     */
    void deleteById(Long id);

    /**
     * 查询单条
     * @param id
     * @return
     */
    GroupJoin findOneById(Long id);

}
